package com.cake.liulanxiangzhu.mapper;

import com.cake.liulanxiangzhu.pojo.dto.CakeProductDTO;
import com.cake.liulanxiangzhu.pojo.vo.WeiXinCakeProductVO;
import com.cake.liulanxiangzhu.pojo.entity.CakeProduct;
import com.cake.liulanxiangzhu.pojo.vo.CakeProductVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CakeProductMapper {

    int insertCakeProduct(CakeProduct cakeProduct);

    List<CakeProductVO> list();

    List<CakeProductVO> listWx(Integer categoryId );

    CakeProductVO getCakeById(Integer cakeId);

    int deleteCakeById(Integer cakeId );

    int updateCakeById(CakeProduct cakeProduct );

    List<CakeProductVO> selectCake(CakeProductDTO cakeProductDTO);

    List<CakeProductVO> queryBySales();

    List<WeiXinCakeProductVO>  queryAllSku(Integer cakeId);

    List<CakeProductVO> queryByCategoryId(Integer categoryId );

}
